package lzk.myshop.dao;

import lzk.myshop.pojo.Admin;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface Adminmapper {
    @Select("select * from Admin where `id` = #{id}")
    Admin findbyid(int id);

    @Delete("delete from admin where 'id' = #{id}")
    int deletebyid(int id);

}
